home *** CD-ROM | disk | FTP | other *** search
- PARK: A configurable hard drive parking utility.
-
- Some time ago, I put together an XT computer out of spare parts I had lying
- around, and ended up with a rather weird disk configuration. I had this 12 Meg
- hard drive, which had 6 heads and 240 cylinders. The closest drive table entry
- on the XT controller was 6 heads and 400 cylinders.
-
- I was able to use the drive by doing a partial format of only the first 240
- cylinders, and establishing a primary DOS partition (using FDISK) which was 240
- cylinders in size. Although the BIOS thought it was a 400 cylinder drive, it
- had no reason to access to the cylinders which were not physically present.
-
- This worked perfectly, until I tried to park the drive.... (Insert the sound
- of a head actuator banging against the stop about 160 times!!!)
-
- Since I had run into other situations (particularily on XT's) where I didn't
- always have a park utility which put the heads away where I wanted, I decided
- to solve the problem once and for all, and wrote PARK.COM described below:
-
- The source code to PARK is provided in the file PARK.C, and may be
- re-compiled using my MICRO-C compiler (See enclosed CATALOG file). It MUST
- be complied in TINY model, which allows it to easily write out an updated
- copy of itself (See '-s' option).
-
- The program may be freely used and distributed, provided that my copyright
- notices are not removed or altered.
-
- In its simplest form, the PARK command consists of one decimal operand for
- each drive in the system, which is the cylinder number at which to park the
- drive. If you specify a cylinder number of 0 (zero), the highest cylinder
- number for that drive as reported by BIOS is used:
-
- PARK 0 ; Park drive C at highest known cylinder
- PARK 240 ; Park drive C at cylinder 240
- PARK 240 0 ; Park drive C at 240, drive D at highest
- PARK 240 400 ; Park drive C at 240, drive D at 400
-
- If the BIOS does not acknowledge the existance of a drive, it will be
- ignored. The last two examples above would be equivalent to "PARK 240" on
- a single drive system.
-
- PARK.COM supports a '-s' option, which causes it to write a new PARK.COM
- which defaults to the remaining options. Executing PARK with no arguments
- will PARK at these default settings:
-
- PARK -s 240 0 ; Save the settings
- PARK ; Park drive C at 240, drive D at highest
-
- You may see the currently defined default settings by executing PARK
- with the '-s' option, and no other arguments:
-
- PARK -s ; Display the default settings
-
- The PARK.COM program supplied in this archive is defaulted to TWO drives,
- both of which are parked at the highest cylinder number indicated by BIOS.
- This is equivalent to:
-
- PARK -s 0 0 ; Default to drive C+D, highest cylinder
-
- PARK will display a brief help summary if you give it an operand of
- '?' or '-?'.
-
- PARK ? ; Display usage info
-